﻿using Lhz.Common.Business;
using Lhz.Pp.Entity.Database;
using System;
using System.Linq;

namespace Lhz.Pp.Business
{
    public class UserProxy : EntityProxy<Guid, User>
    {
        public UserProxy(string pathConfiguration = null) : base(pathConfiguration)
        {

        }

        public User QueryByUsernameAndPassword(string username, string password)
        {
            return Query().Where(r => r.Username == username && r.Password == password).FirstOrDefault();
        }
    }
}
